package com.zbj;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * ListenerConfig
 *
 * @author weigang
 * @create 2019-07-30
 **/
@Configuration
public class ListenerConfig {

    /**
     * 添加监听器方式三
     *
     * @return
     */
    @Bean
    public CustomApplicationListener customApplicationListener() {
        return new CustomApplicationListener();
    }
}